package com.bean.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

public class StaffQueryVo implements Serializable {

    private static final long serialVersionUID = 1L;

    /**登录员工*/

    /**查询关键字 */
    private String keyword;
    /**职务id*/
    private Integer roleId;
    /**部门id*/
    private Integer deptId;
    /**职务级别*/
    private Integer roleLevel;

    /**生日月份*/
    private  Integer birthMonth;

    /**生日起始日*/
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    private Date birthdayMin;
    /**生日截止日*/
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    private Date birthdayMax;


    public StaffQueryVo() {
    }

    public StaffQueryVo(String keyword, Integer roleId, Integer deptId, Integer roleLevel, Integer birthMonth, Date birthdayMin, Date birthdayMax) {
        this.keyword = keyword;
        this.roleId = roleId;
        this.deptId = deptId;
        this.roleLevel = roleLevel;
        this.birthMonth = birthMonth;
        this.birthdayMin = birthdayMin;
        this.birthdayMax = birthdayMax;
    }

    @Override
    public String toString() {
        return "StaffQueryVo{" +
                "keyword='" + keyword + '\'' +
                ", roleId=" + roleId +
                ", deptId=" + deptId +
                ", roleLevel=" + roleLevel +
                ", birthMonth=" + birthMonth +
                ", birthdayMin=" + birthdayMin +
                ", birthdayMax=" + birthdayMax +
                '}';
    }

    public Integer getDeptId() {
        return deptId;
    }

    public void setDeptId(Integer deptId) {
        this.deptId = deptId;
    }

    public Integer getBirthMonth() {
        return birthMonth;
    }

    public void setBirthMonth(Integer birthMonth) {
        this.birthMonth = birthMonth;
    }

    public String getKeyword() {
        return keyword;
    }

    public void setKeyword(String keyword) {
        this.keyword = keyword;
    }

    public Integer getRoleId() {
        return roleId;
    }

    public void setRoleId(Integer roleId) {
        this.roleId = roleId;
    }

    public Integer getRoleLevel() {
        return roleLevel;
    }

    public void setRoleLevel(Integer roleLevel) {
        this.roleLevel = roleLevel;
    }

    public Date getBirthdayMin() {
        return birthdayMin;
    }

    public void setBirthdayMin(Date birthdayMin) {
        this.birthdayMin = birthdayMin;
    }

    public Date getBirthdayMax() {
        return birthdayMax;
    }

    public void setBirthdayMax(Date birthdayMax) {
        this.birthdayMax = birthdayMax;
    }
}
